#!/usr/bin/env bash

#
#

bash ./update_5.0.sh
\cp -rf ./keep_run.sh /server/scripts/
\cp -rf ./vod_opt.sh /server/scripts/
\cp -rf ./bxvodBak.sh /server/scripts/
sed -i '/\/server\/scripts\/creat_view.sh/d' /var/spool/cron/root
sed -i '/check_invalid_server.php/d' /var/spool/cron/root
sed -i '/when_rm_song.sh/d' /var/spool/cron/root
sed -i '/repair.sh/d' /var/spool/cron/root
rm -rf /server/scripts/php4_manage.sh
sed -i '/php/d' /etc/rc.d/rc.local
sed -i '/cloudSongRsync/d' /etc/rc.d/rc.local
sed -i '/supervisord/d' /etc/rc.d/rc.local
sed -i '/sleep/d' /etc/rc.d/rc.local
sed -i '/^mount/d' /etc/rc.d/rc.local
sed -i '/mysqlfile/d' /etc/rc.d/rc.local
ps axj |grep Wor |awk '{print $2}' |xargs kill -9
sed -i '/php/d' /etc/rc.local
sed -i '/cloudSongRsync/d' /etc/rc.local
sed -i '/supervisord/d' /etc/rc.local
sed -i '/sleep/d' /etc/rc.local
sed -i '/^mount/d' /etc/rc.local
sed -i '/mysqlfile/d' /etc/rc.local
